package com.sdleyou.treepro.common.model.dto;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data

@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
public class PropDTO {
    @NotEmpty(message = "道具名称不能为空")
    private String propName;

    private String propDesc;

    @NotEmpty(message = "道具类型不能为空")
    private String propType;

    @NotEmpty(message = "道具价值不能为空")
    private Integer propValue;

    @NotEmpty(message = "道具图标不能为空")
    private String propIcon;

    private String propImage;

    @NotEmpty(message = "道具效果不能为空")
    private String propEffect;
}
